<?php
header("Content-Type: text/html;charset=utf-8");
$app->get('/home','App\Controllers\UserController:home');
$app->get('/','App\Controllers\UserController:login');
$app->get('/login',"App\Controllers\UserController:login");
$app->post('/login',"App\Controllers\UserController:postlogin");
$app->group('/menu',function(){
	$this->get('/announceList',"App\Controllers\UserController:announceList");
	$this->get('/customerManagement',"App\Controllers\UserController:customerManagement");
	$this->get('/distributedList',"App\Controllers\UserController:distributedList");
	$this->get('/employeeList',"App\Controllers\UserController:employeeList");
	$this->get('/flowerShowlist',"App\Controllers\UserController:flowerShowlist");
	$this->get('/flowerStocklist',"App\Controllers\UserController:flowerStocklist");
	$this->get('/orderedList',"App\Controllers\UserController:orderedList");
	$this->get('/roleManagement',"App\Controllers\UserController:roleManagement");
	$this->get('/undistributeList',"App\Controllers\UserController:undistributeList");
	$this->get('/unorderList',"App\Controllers\UserController:unorderList");
	$this->get('/main',"App\Controllers\UserController:main");
	$this->get('/logSystemlist',"App\Controllers\UserController:logSystemlist");
	$this->get('/logBusinesslist',"App\Controllers\UserController:logBusinesslist");
	$this->get('/lunbotu',"App\Controllers\UserController:lunbotu");
	$this->get('/xianshi',"App\Controllers\UserController:xianshi");
	$this->get('/distributing',"App\Controllers\UserController:distributing");
	$this->get('/cake',"App\Controllers\UserController:cake");
	$this->post('/integralGoods/goodList',"App\Controllers\UserController:goodList");
});
$app->post('/getmenu',"App\Controllers\UserController:getmenu");
$app->post('/getname',"App\Controllers\UserController:getname");
$app->get('/logoff',"App\Controllers\UserController:logoff");
$app->post('/getannounce',"App\Controllers\AnnounceController:getannounce");
$app->group('/announce',function(){
	$this->post('/delect',"App\Controllers\AnnounceController:delannounce");
	$this->get('/get',"App\Controllers\AnnounceController:getannounceedit");
	$this->post('/msg',"App\Controllers\AnnounceController:announcemsg");
	$this->post('/edit',"App\Controllers\AnnounceController:announceedit");
});
$app->group('/flower',function(){
	$this->post('/stock',"App\Controllers\FlowerController:flowerstock");
	$this->post('/edit',"App\Controllers\FlowerController:floweredit");
	$this->post('/msg',"App\Controllers\FlowerController:flowermsg");
});
$app->post('/flowershow/edit',"App\Controllers\FlowerController:showedit");
$app->group('/stock',function(){
	$this->post('/delect',"App\Controllers\FlowerController:stockdelect");
	$this->post('/msg',"App\Controllers\FlowerController:stockmsg");
	$this->post('/edit',"App\Controllers\FlowerController:stockedit");
	$this->post('/add',"App\Controllers\FlowerController:stockadd");
});
$app->group('/order',function(){
	$this->post('/finished',"App\Controllers\OrderController:orderfinished");
	$this->post('/unfinish',"App\Controllers\OrderController:orderunfinish");
	$this->post('/msg',"App\Controllers\OrderController:ordermsg");
	$this->post('/edit',"App\Controllers\OrderController:orderedit");
	$this->post('/delect',"App\Controllers\OrderController:orderdel");
});
$app->group('/distribute',function(){
	$this->post('/doing',"App\Controllers\DistributeController:distributedoing");
	$this->post('/finished',"App\Controllers\DistributeController:distributefinished");
	$this->post('/unfinish',"App\Controllers\DistributeController:distributeunfinish");
	$this->post('/msg',"App\Controllers\DistributeController:distributemsg");
});
$app->post('/getflower',"App\Controllers\FlowerController:getflower");
$app->post('/getlunbo',"App\Controllers\AnnounceController:getlunbo");
$app->post('/getcustomer',"App\Controllers\AnnounceController:getcustomer");
$app->post('/getxianshi',"App\Controllers\AnnounceController:getxianshi");
$app->post('/getemployee',"App\Controllers\AnnounceController:getemployee");
$app->post('/roleList',"App\Controllers\AnnounceController:roleList");
$app->post('/getSystem',"App\Controllers\AnnounceController:getSystem");
$app->post('/getBusiness',"App\Controllers\AnnounceController:getBusiness");
$app->post('/ordercount',"App\Controllers\OrderController:ordercount");
$app->post('/distribcount',"App\Controllers\OrderController:distribcount");
$app->post('/announcecount',"App\Controllers\OrderController:announcecount");
$app->post('/customermsg',"App\Controllers\AnnounceController:customermsg");
$app->group('/customer',function(){
	$this->post('/edit',"App\Controllers\AnnounceController:customeredit");
});
$app->post('/employeemsg',"App\Controllers\AnnounceController:employeeMsg");
$app->post('/getroletree',"App\Controllers\AnnounceController:roletree");
$app->group('/employ',function(){
	$this->post('/edit',"App\Controllers\AnnounceController:employedit");
	$this->post('/add',"App\Controllers\AnnounceController:employadd");
	$this->post('/delect',"App\Controllers\AnnounceController:employdel");
});
$app->post('/roleget',"App\Controllers\AnnounceController:roleget");
$app->post('/rolemsg',"App\Controllers\AnnounceController:rolemsg");
$app->group('/role',function(){
	$this->post('/edit',"App\Controllers\AnnounceController:roleedit");
	$this->post('/add',"App\Controllers\AnnounceController:roleadd");
	$this->post('/delect',"App\Controllers\AnnounceController:roledelect");
});
$app->post('/getuserrole',"App\Controllers\AnnounceController:getuserrole");
$app->post('/upload/img',"App\Controllers\FlowerController:uploadimg");
$app->group('/lunbo',function(){
    $this->post('/msg',"App\Controllers\AnnounceController:lunbomsg");
    $this->post('/edit',"App\Controllers\AnnounceController:lunboedit");
    $this->post('/delect',"App\Controllers\AnnounceController:lunbodel");
    $this->post('/add',"App\Controllers\AnnounceController:lunboadd");
});
$app->group('/xianshi',function(){
	$this->post('/msg',"App\Controllers\AnnounceController:xianshimsg");
	$this->post('/edit',"App\Controllers\AnnounceController:xianshiedit");
});
$app->get('/csfwpt_console/integralCakes/toAddOrUpdate',"App\Controllers\DistributeController:cakeEdit");
